import { Entity, Column } from 'typeorm';
import { Abstract } from '@entity/abstract.entity';

@Entity()
export class Corp extends Abstract {
  @Column({
    nullable: true,
  })
  accessToken: string;

  @Column({
    nullable: true,
  })
  expiresIn: number;

  @Column({
    type: 'date',
    nullable: true,
  })
  accessTokenExpiresAt: Date;

  @Column({
    nullable: true,
  })
  permanentCode: string;

  @Column({
    nullable: true,
  })
  corpId: string;

  @Column({
    nullable: true,
  })
  corpName: string;

  @Column({
    nullable: true,
  })
  corpType: string;

  @Column({
    nullable: true,
  })
  corpRoundLogoUrl: string;

  @Column({
    nullable: true,
  })
  corpSquareLogoUrl: string;

  @Column({
    nullable: true,
  })
  corpUserMax: number;

  @Column({
    nullable: true,
  })
  corpAgentMax: number;

  @Column({
    nullable: true,
  })
  corpFullName: string;

  @Column({
    nullable: true,
  })
  verifiedEndTime: number;

  @Column({
    nullable: true,
  })
  subjectType: number;

  @Column({
    nullable: true,
  })
  qrcode: string;

  @Column({
    nullable: true,
  })
  scale: string;

  @Column({
    nullable: true,
  })
  industry: string;

  @Column({
    nullable: true,
  })
  subIndustry: string;

  @Column({
    nullable: true,
  })
  location: string;

  @Column({
    nullable: true,
  })
  userid: string;

  @Column({
    nullable: true,
  })
  openUserId: string;

  @Column({
    nullable: true,
  })
  name: string;

  @Column({
    nullable: true,
  })
  avatar: string;

  @Column({
    nullable: true,
  })
  agentId: number;

  @Column({
    nullable: true,
  })
  agentName: string;

  @Column({
    nullable: true,
  })
  agentLogo: string;

  @Column({
    type: 'json',
  })
  msg: string;
}
